home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group95a.txt / 000028_icon-group-sender _Fri Jan 27 15:12:45 1995.msg < prev    next >
Internet Message Format  |  1995-02-09  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Fri, 27 Jan 1995 13:12:56 MST
  2. From: Nick Williams <nmw@ios.com>
  3. Message-Id: <199501272012.PAA03285@ios.com>
  4. Subject: Re: Icon V9, under OpenVMS/VAX and Indexed RMS files (fwd)
  5. To: icon-group@cs.arizona.edu
  6. Date: Fri, 27 Jan 1995 15:12:45 -0500 (EST)
  7. X-Mailer: ELM [version 2.4 PL23]
  8. Mime-Version: 1.0
  9. Content-Type: text/plain; charset=US-ASCII
  10. Content-Transfer-Encoding: 7bit
  11. Content-Length: 1474      
  12. Errors-To: icon-group-errors@cs.arizona.edu
  13.  
  14.  
  15. >btiffin@on.bell.ca (Brian Tiffin) writes:
  16.  
  17. >>I'd like a way of indexing into our keyed Canada Post data
  18. >>to pull out the actual postal code. [...] Reading through the file as flat 
  19. >>ASCII just doesn't cut it and its way too huge to pull into a TABLE.  
  20. >>I'm thinking that I should probably look into the C interface [...]
  21.  
  22. >You probably already have fast query programs for your postal database,
  23. >including ones that let you make queries from the shell prompt.
  24. >If I were doing this under MS-DOS, I'd use system() to call such a
  25. >query program, rather than coding my own function.  I'd have it write
  26. >the query result to a RAMDisk, & I'd have the executable code of the
  27. >query program on a RAM-cached disk.  The only real overhead would be
  28. >process switching, which would be much faster than any Icon 
  29. >implementation of a database query, & much easier to program.
  30.  
  31. >The "C interface", allowing you to code C routines to integrate
  32. >with your Icon routines, hasn't worked for several years, AFAIK.
  33. >It's possible to hack the interpreter to put in your own functions,
  34. >but that's much more difficult than using system().
  35.  
  36. Not true. The C interface works perfectly, at least on the Unix systems
  37. I've tested it on. Even it it doesn't work you can always extend the set
  38. of functions supported by Icon by writing some RTL code and rebuilding
  39. the interpreter or rt.a and rt.db.
  40.  
  41. >Always call collect() right before each system() call.
  42.  
  43. Nick
  44.  
  45. IOS System Operator (nmw@ios.com)